import BackTop from 'components/context/BackTop'

export const itemListenerMixin = {
  data: () => ({
    itemListener: null
  }),
  mounted() {
    // console.log(this.$route.path);
  }
}

export const backTopMixin = {
  data: () => ({
    isShowBackTop: false
  }),
  methods: {
    back2Top() {
      this.$refs.scroll && this.$refs.scroll.scrollTo
      this.$refs.scroll.scrollTo(0, 0);
    }
  },
  components: {
    BackTop
  }
}